{* Template Name:列表内容页面 *}

{php}<?php
$description = preg_replace('/[\r\n\s]+/', ' ', trim(SubStrUTF8(TransferHTML($article->Intro,'[nohtml]'),100)).'...');
$desc = htmlspecialchars($description);
?>{/php}
<article class="col-sm-6 col-md-4 col-xl-3 articlebox" id="post-{$article.ID}">
	<div class="article">
		{if $article.Cover}
			<a href="{$article.Url}" target="_blank" id="thumbnail-{$article.ID}">
			  <img src="{$article.Cover}" alt="{$article.Title}" class="img-fluid mb-2">
			</a>
			<a href="{$article.Url}" title="{$article.Title}" target="_blank" id="title-{$article.ID}" class="list-title-name">	
				{$article.Title}
			</a>
			<p class="list-title-body text-muted">
				{$article.Author.StaticName}&nbsp;
				{if $article.TagsName}
					{str_replace(',','',$article.TagsName)}
				{/if}
				<time>{$article.Time('Y-m-d')}</time> - ID{$article.ID}
			</p>
		{else}
			<div class="media p-2 mb-3">
	        <div class="media-left mr-2">
	          <a href="{$article.Url}">
	            <img class="media-object" src="{$host}zb_users/theme/{$theme}/img/favicon.ico" alt="ico" height="36">
	          </a>
	        </div>
	        <div class="media-body">
	          <a href="{$article.Url}"><h6>{$article.Title}</h6></a>
	          <small>{$desc}</small>
	        </div>
	      </div>
		{/if}
	</div>
</article><!-- {$article.ID} End -->